﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using PControl;
using System.Threading;

namespace Test
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

        private List<VideoPlayer> vps=new List<VideoPlayer>();
        private void Form2_Load(object sender, EventArgs e)
        {
            foreach (Control ctr in this.Controls)
            {
                vps.Add(ctr as VideoPlayer);
            }
            for (int i = 0; i < vps.Count; i++)
            {
                VideoPlayer vp = vps[i];
                vp.FilePath = @"E:\视频\海贼王\海贼王最不容错过最为震撼的作品-《英雄祭-白胡子赞歌》顶上之战典藏纪念版上篇　@56至君宝  作品　海贼王编外传第六集正式版.wmv";
                vp.Start();
                //Random radom=new Random();
                //Thread.Sleep(radom.Next(2000, 5000));
            }
        }
    }
}
